Added hardtanh, linear, sin activation functions. Solved minor bugs