Code Cleanup

Performed some code cleanup. Added more copyrights and fixed small
errors. Converted the C style AESCTR structure to a class.