Fixed the gitignore.
Fixed memory allocation error in ram_segment.
Fixed several issues in clocktroller.