for your inverted sleep pattern you can use lorazepam-2mg as it is metabolized and excreted by renal route and is safe in liver disease.
also sleep hygiene
is also needed,
1-Arise at the same time daily.
2-Limit daily in-bed time to the usual amount present before the sleep disturbance.
3-Discontinue central nervous system
(CNS)-acting drugs (caffeine, nicotine
, alcohol, stimulants).
4-Avoid daytime naps (except when sleep chart shows they induce better night sleep).
5-Establish physical fitness by means of a graded program of vigorous exercise early in the day.
6-Avoid evening stimulation; substitute radio or relaxed reading for television.
7-Try very hot, 20-minute, body-temperature-raising bath soaks near bedtime.
8-Eat at regular times daily; avoid large meals near bedtime.
9-Practice evening relaxation routines, such as progressive muscle relaxation
10-Maintain comfortable sleeping conditions.