Potentially fixes #287 by removing the second call hook to open the GUI of the portable cell

Added copyrights
Reformated code
Rearranged code