added boolean option to share input and output embeddings and some code formatting. Havent implemented embedding sharing as yet