Removes whitespaces and unused functions