Added headline function, fixed small bugs